{layout name="layout" /}
<div class="table-tip fn-clear">
    <select class="select" name="category_id" onchange="window.location=options[(this.selectedIndex)].value">
    <option value="">考场统计</option>
    {volist name="exam_json" id="vo"}
    <option value="{$vo.href}" {if $school_id == $vo['id']}selected="selected"{/if}>{$vo['text']}</option>
    {/volist}
    </select>
    {present name="$info['name']"}
    <strong>统计考场：{$info['name']}</strong>
    {/present}
    <a class="button button-small button-blue" href="{:url('plus_exam/history/lists_excel',['school_id' => $school_id])}">导出EXCEL</a>
    <div class="fn-right"> 共有数据 <span class="red">{$count}</span> 条 </div>
</div>
<table class="table">
    <colgroup>
        <col class="w80" />
        <col class="w140" />
        <col class="w140" />
        <col/>
        <col class="w140"/>
        <col class="w140" />
        <col class="w140" />
        <col class="w80" />
        <col class="w80" />
    </colgroup>
    <thead>
        <tr>
            <th class="fn-tac">#</th>
            <th>用户ID</th>
            <th>用户名</th>
            <th>考试卷</th>
            <th>成绩</th>
            <th>开考时间</th>
            <th>交卷时间</th>
            <th class="fn-tac">状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    {volist name="list" id="rs"}
        <tr>
            <td class="fn-tac">{$rs.id}</td>
            <td>{$rs.user_id}</td>
            <td>{$rs.nickname}</td>
            <td>{$rs.name}</td>
            <td><span style="float:right">{$rs.score}</span></td>
            <td>{$rs.create_time}</td>
            <td>{$rs.update_time}</td>
            <td class="fn-tac">{if condition="$rs.status"}<span class="badge">已交卷</span>{else}<span class="badge bg-red">未交卷</span>{/if}</td>
            <td>
                <a class="a-button isDel" url="{:url('plus_exam/history/delete',['id'=>$rs.id])}" href="javascript:;" data-rules="delete">
               <i class="iconfont icon-lajixiang"></i> {$Think.lang.lang_ui_delete}
               </a>
           </td>
        </tr>
    {/volist}
    </tbody>
</table>
<div class="page">{$page}</div>
<script type="text/javascript">
Do('base','layer',function(){
    $('.isDel').isDel();
})
</script>

